package com.tang.model.memorandum;

import java.util.Stack;

/**
 * @Author tangyuan2meicloud.com
 * @DATE 2021/9/5 13:52
 * @Desc
 * @Remarks
 */
public class DraftBox {
    private Stack<AriticleMemorandum> stack = new Stack<>();

    public void addMemorandum(AriticleMemorandum memorandumAriticle) {
        stack.add(memorandumAriticle);
    }

    public AriticleMemorandum withdraw() {
        return stack.pop();
    }

}
